﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>

    <title>My JSP 'all.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>
    <style type="text/css">
       *{
        font-size: 12px;
       }
    </style>
  </head>
  
  <body>
    <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 操作信息管理</strong></div>
    <div class="padding border-bottom">
      <!--<ul class="search">
        <li>
          <button type="submit" class="button border-red"><span class="icon-trash-o"></span> 批量删除</button>
        </li>
      </ul>-->
    </div>
    <table class="table table-hover text-center" id="borad-table">
      <tr>
        
        <th>编号</th>       
        <th>电影信息</th>
        <th>大厅信息</th>
        <th>员工信息</th>
        <th>开始时间</th>
        <th>结束时间</th>
        <th>票价</th>
        <th align="center">操作</th>       
      </tr>
    </table>
  </div>


</body>
<script>
    $(function(){
        $.get("../gson/boradGson",function(data){
            var gsonText = '';
            $(data).each(function(i,n){
                gsonText += '<tr>' +
                    '<td>'+n.xid+'</td>' +
                    '<td>'+n.modelFiml.fname+'</td>' +
                    '<td>'+n.modelHall.tname+'</td>' +
                    '<td>'+n.modelEmp.ename+'</td>' +
                    '<td>'+n.begintime+'</td>' +
                    '<td>'+n.endtime+'</td>' +
                    '<td>'+n.xmoney+'</td>' +
                    '<td><div class="button-group">\n' +
                    '\t\t\t\t\t\t<a class="button border-red" href="boradControllerUpdate?xid='+n.xid+'">\n' +
                    '\t\t\t<span class="icon-trash-o">\n' +
                    '\t\t\t\t\t</span> 修改</a> \n' +
                    '\t\t\t\t</div>\n' +
                    '\t\t\t\t<div class="button-group">\n' +
                    '\t\t\t\t\t\t<a class="button border-red" href="deleteById?xid='+n.xid+'">\n' +
                    '\t\t\t<span class="icon-trash-o">\n' +
                    '\t\t\t\t\t</span> 删除</a> \n' +
                    '\t\t\t\t</div></td>' +
                    '</tr>';
            });
            gsonText += '<tr>\n' +
                '       \t\t<td colspan="8" align="center">\n' +
                '\t\t\t\t<a href="boradControllerAdd"><button type="button"  class="button border-green" id="checkall"><span class="icon-check"></span> 增加</button></a>\n' +
                '\t\t\t</td>\n' +
                '       </tr>';
            $('#borad-table tbody').append(gsonText);
        });
    });
</script>
</html>


